  function getInfo(t1: string, t2: string): string {
    let info = {};
    setInfo(info);
    t1 = info[t1]
    return (t1 != null) ? t1 : '';
  }
  
  function setInfo(info: {}) {
    info['foo'] = 42;
  }

  console.log (getInfo ('foo', 'bar'))

